//
//  MainCell.m
//  图片浏览器
//
//  Created by zxy on 2018/10/22.
//  Copyright © 2018年 zxy. All rights reserved.
//

#import "MainCell.h"
@interface MainCell()
@property (weak, nonatomic) IBOutlet UIImageView *icon_urImageView;
@property (weak, nonatomic) IBOutlet UILabel *titleL;

@end
@implementation MainCell

- (void)awakeFromNib {
    [super awakeFromNib];
}

-(void)setModel:(MainModel *)model{
    _model = model;
    NSString *pic = [model.cover componentsSeparatedByString:@"?"][0];
    [self.icon_urImageView sd_setImageWithURL:[NSURL URLWithString:pic]];
    self.titleL.text = model.title;
}

@end
